<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>学生表</title>
		<style>
			table, th, td
				{			
					border: 1px solid black;
				    text-align:center; 
						}
		</style>
	</head>
	<body>
		<div>
			<table class="table">
				<tr>
					<th>编号</th>
					<th>名字</th>
					<th>电话</th>
					<th>QQ</th>
					<th>年龄</th>
					<th>性别</th>
					<th>头像</th>
					<th>呢称</th>
					<th>邮箱</th> 
				  </tr>
				<tbody id="student2" >
					
				<!-- 	<tr>
						<td>5</td>
						<td>呵呵 </td>
						<td>无</td>
						<td>manager6</td>
						<td>5</td>
						<td>呵呵 </td>
						<td>无</td>
						<td>manager6</td>
						<td>5</td>
					</tr>  -->
			</tbody></table>
		</div>
		<script src="js/jquery.min.js"></script>
		<script type="text/javascript">
		 $(function(){
				search();
			});
			function search(){
				$.ajax({
					url:"yogaclub/byyid",
					type:"get",
					dataType:"json",
					success:function(data){
						alert(data);
						var content="";
						for(var i=0;i<data.length;i++){
							var po = data[i];
							content+="<tr>"
							+"<td>"+po.students[i].sid+"</td>"
							+"</tr>";
						}
						$("#student2").html(content);
					}
				})
			} 
		</script>
	</body>